package cn.fruitmarket.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static Date parse(String dateStr) throws Exception {
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm");
        return sdf.parse(dateStr);
    }
}
